

#include "CTApp.h"
#include "MainFrame.h"
#include "Rect.h"
#include "log.h"
#include "log_dispatcher.h"
#include "logtracer_shell.h"

CTApp theApp;

CTApp::CTApp()
    : m_mainFrame(NULL)
{
}

CTApp::~CTApp()
{
    if (m_mainFrame) {
        delete m_mainFrame;
    }
}
   

void CTApp::Init(void)
{
    logging::LogDispatcher::GetInstance()->AddTracer(new logging::LogTracerShell());

    CRect   rect(0, 0, 800, 600);
    m_mainFrame = new CMainFrame();
    m_mainFrame->Create(NULL, rect, "TEST");
    m_mainFrame->Show();
}

